package com.xuecheng.system.init.schedule;

import com.xuecheng.system.init.StatusContentTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * <p></p>
 *
 * @Description:
 */
@Component
public class ReLoadDictionDataSync {

    @Autowired
    private StatusContentTaskService contentTaskService;

    @Scheduled(cron = "0 0 3 * * ?")
    public void reloadDataSync() {
        contentTaskService.loadContent2DataSource();
    }

}
